<h4>Результати пошуку:</h4><br />
<?php
$content = new Models_Article();
$search = $content->search($key);
if(count($search) <= 0)
{
    echo '<div class="alert alert-danger">
            <h4>За вашим запитом нічого не знайдено.</h4>"' .
            $key
          . '"</div>';
} else {
    //var_dump($search);
    foreach ($search as $value)
    {
        $text = $content->getMiniature($value['content'], 1600);
        echo '<div class="alert alert-info">';
        echo '<a href="/' . $content->path . 'article/show/' . $value['menu_id'] . '">' . $value['name'] . '</a><br />';
        echo $text;
        echo '<br /><span class="pull-right">' . $value['modified'] . '</span><br />';
        echo '</div>';
    }
}
?>